package org.darkforest.ucenter.service.impl;

import org.darkforest.dao.mapper.FestivalRemindMapper;
import org.darkforest.model.FestivalRemind;
import org.darkforest.ucenter.service.FestivalRemindService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by pc on 2017/4/20.
 */
@Service
public class FestivalRemindServiceImpl implements FestivalRemindService {

    @Autowired
    private FestivalRemindMapper  festivalRemindMapper;

    @Override
    public FestivalRemind selectListByCondition(FestivalRemind record) {
        record.setResultList(festivalRemindMapper.selectListByCondition(record));
        return record;
    }

    @Override
    public void batchSetRemindShowFlag() {
        festivalRemindMapper.batchSetRemindShowFlag();
    }

    @Override
    public void batchSetRemindYear() {
        festivalRemindMapper.batchSetRemindYear();
    }
}
